import Vue from 'vue';
import VueResource from 'vue-resource';
// import Router from 'vue-router';
import iView from 'iview';
import _ from 'underscore';
import router from './router/router';

require('../css/iview.css');
Vue.use(iView);
Vue.use(VueResource);
// Vue.use(Router);
var url = location.host;
// $.get("../admin/meunRequest", function (res) {
//     res = JSON.parse(res);
//     var routerQ = [];
//     _.forEach(res, function (data, index) {
//         var url = "require(\"" + data["component"] + "\")";
//         routerQ.push({
//             path: data["path"],
//             name: data["name"],
//             component: url
//         })
//     });
//     let router = new Router({routes: router});
    new Vue({
        el: '#app',
        router: router,
        data() {
            return {
                hello: "你大爷",
                theme2: "dark"
            }
        },
        filters: {},
        created: function () {

        },
        methods: {},
        watch: {}
    });
// });